Skip to content

Conversation

datibbaw
Copy link
Contributor

@datibbaw datibbaw commented Jun 4, 2015

While array_column() comes in handy for two-dimensional arrays, for the same reasons it would also come in handy if you have an array of objects.

This implementation behaves in the same manner as for arrays; if the property referenced by the $column_key argument doesn't exist, it will be skipped. If your class features dynamic properties by using __get(), you must implement __isset() as well.

@datibbaw datibbaw force-pushed the array_column-with-objects branch from fab2f73 to 2ab9b62 Compare June 20, 2015 03:16
@php-pulls
Copy link

Comment on behalf of datibbaw at php.net:

Merged with 3bf012a

@php-pulls php-pulls closed this Jun 26, 2015
@datibbaw datibbaw deleted the array_column-with-objects branch March 17, 2020 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants